﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Gui/masterPage.Master" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="OnlineStore.Gui.Add" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentCenter" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentTop" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server">
    <table style="width: 100%;">
        <tr>
            <td align="right">
                &nbsp;
                Tên sản phẩm</td>
            <td>
                &nbsp;
                <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
                Mã sản phẩm cha</td>
            <td>
                &nbsp;
                <asp:TextBox ID="txtIdFather" runat="server" Width="200px" AutoPostBack="True"></asp:TextBox>
                <asp:Button ID="btnCheckIdFather" runat="server" 
                    onclick="btnCheckIdFather_Click" Text="Kiểm tra" />
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
                Loại sản phẩm</td>
            <td>
                &nbsp;
                <asp:DropDownList ID="ddlType" runat="server" Width="200px">
                    <asp:ListItem Selected="True">Dresses</asp:ListItem>
                    <asp:ListItem>Skirts</asp:ListItem>
                    <asp:ListItem>Shirts and Blouses</asp:ListItem>
                    <asp:ListItem>Pants</asp:ListItem>
                    <asp:ListItem>Coats</asp:ListItem>
                    <asp:ListItem>Shoes</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                Size</td>
            <td>
                <asp:DropDownList ID="ddlSize" runat="server">
                    <asp:ListItem Selected="True">S</asp:ListItem>
                    <asp:ListItem>M</asp:ListItem>
                    <asp:ListItem>L</asp:ListItem>
                    <asp:ListItem>XL</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                Màu sắc</td>
            <td>
                <asp:TextBox ID="txtColor" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                Giới thiệu</td>
            <td>
                <textarea id="txtIntroduce" runat="server" name="S1" rows="2"></textarea></td>
        </tr>
        <tr>
            <td align="right">
                Chi tiết</td>
            <td>
                <textarea id="txtDetail" runat="server" name="S2" rows="2" cols="20"></textarea></td>
        </tr>
        <tr>
            <td align="right">
                Hình</td>
            <td>
                <asp:FileUpload ID="fupHinh" runat="server" Width="200px" />
            </td>
        </tr>
        <tr>
            <td align="right">
                Giá</td>
            <td>
                <asp:TextBox ID="txtPrice" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <asp:Label ID="lblWarn" runat="server" ForeColor="#FF6600" Text="Lỗi nhập" 
                    Visible="False"></asp:Label>
                <br />
                <asp:Label ID="lblFather" runat="server" ForeColor="#FF6600" Text="Lỗi father" 
                    Visible="False"></asp:Label>
                </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;</td>
            <td>
                <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="Thêm" 
                    Width="85px" />
                <asp:Button ID="btnAddCancel" runat="server" Text="Nhập lại" Width="85px" 
                    onclick="btnAddCancel_Click" />
            </td>
        </tr>
    </table>
    </form>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentButtom" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Contentlist" runat="server">
</asp:Content>
